/*    */ package com.zimbra.cs.account.accesscontrol;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.util.Log;
/*    */ import com.zimbra.common.util.ZimbraLog;
/*    */ import com.zimbra.cs.account.Account;
/*    */ import com.zimbra.cs.account.Entry;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public abstract class CheckRightFallback
/*    */ {
/*    */   protected Right mRight;
/*    */   
/*    */   void setRight(Right right)
/*    */   {
/* 28 */     this.mRight = right;
/*    */   }
/*    */   
/*    */   public Boolean checkRight(Account authedAcct, Entry target, boolean asAdmin) {
/*    */     try {
/* 33 */       return doCheckRight(authedAcct, target, asAdmin);
/*    */     } catch (ServiceException e) {
/* 35 */       ZimbraLog.acl.warn("caught exception in checkRight fallback, checkRight fallback for right [" + this.mRight.getName() + "] skipped", e);
/*    */     }
/* 37 */     return null;
/*    */   }
/*    */   
/*    */   protected abstract Boolean doCheckRight(Account paramAccount, Entry paramEntry, boolean paramBoolean)
/*    */     throws ServiceException;
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/accesscontrol/CheckRightFallback.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */